import request from '@/utils/request'

// 查询盒移位任务列表
export function listArchiveBoxMoveTask(query) {
  return request({
    url: '/archive/ArchiveBoxMoveTask/list',
    method: 'get',
    params: query
  })
}

// 查询盒移位任务详细
export function getArchiveBoxMoveTask(taskId) {
  return request({
    url: '/archive/ArchiveBoxMoveTask/' + taskId,
    method: 'get'
  })
}

// 新增盒移位任务
export function addArchiveBoxMoveTask(data) {
  return request({
    url: '/archive/ArchiveBoxMoveTask',
    method: 'post',
    data: data
  })
}

// 修改盒移位任务
export function updateArchiveBoxMoveTask(data) {
  return request({
    url: '/archive/ArchiveBoxMoveTask',
    method: 'put',
    data: data
  })
}

// 删除盒移位任务
export function delArchiveBoxMoveTask(taskId) {
  return request({
    url: '/archive/ArchiveBoxMoveTask/' + taskId,
    method: 'delete'
  })
}
//根据taskid获取档案盒移位列表
export function selectArchiveBoxMoveByTaskId(taskId) {
  return request({
    url: '/archive/ArchiveBoxMove/selectArchiveBoxMoveByTaskId/' + taskId,
    method: 'get'
  })
}
//修改库位号
export function editarchiveBoxMoveList(data) {
  return request({
    url: '/archive/ArchiveBoxMove/editarchiveBoxMoveList',
    method: 'post',
    data: data
  })
}
export function endArchiveBoxMoveList(data) {
  return request({
    url: '/archive/ArchiveBoxMove/endArchiveBoxMoveList',
    method: 'post',
    data: data
  })
}

export function archiveBoxMoveTaskResultReport(data) {
  return request({
    url: '/archive/ArchiveBoxMoveTask/archiveBoxMoveTaskResultReport',
    method: 'post',
	data: data
  })
}